package com.y.architecture.weather;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by youjingjing on 2017/11/6.
 */

public interface WeatherApi {
    String BASE_URL = "https://free-api.heweather.com/s6/weather/";
    /**
     * 分页获取分类数据
     *
     * @param city 城市
     * @return 返回分类数据列表
     */
    @GET("now?key=ac68a3482d264e638111a27d4ee77089")
    Observable<Weather> getWeather(@Query("location") String city);
}
